package vip.xiaonuo.vein.controller.vo;

import com.alibaba.fastjson.JSON;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class Feature {

    private String left ;

    private String right;

    public Feature(UpdateFeatureInfo.UpdateFeatureInfoDTO feature){
        this.left = feature.getPalmVeinFeatureLeft();
        this.right = feature.getPalmVeinFeatureRight();
    }

    public String toJsonString (){
        return JSON.toJSONString(this);
    }

    private Feature getBean(String text){
        return JSON.parseObject(text,Feature.class);
    }
}
